import request from '../utils/request.js'

/**
 * 查询消息列表
 * @param params
 * @returns {*}
 */
export function queryChatMessageList(params) {
    return request({
        url: '/message/query',
        method: 'get',
        params: params
    })
}

/**
 * 创建sse
 * @param chatMessage
 * @returns {*}
 */
export function createSse(chatMessage) {
    return request({
        url: '/sse',
        method: 'post',
        data: chatMessage
    })
}